package com.blog.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.blog.common.Result.PageResult;
import com.blog.dto.CommentAddDto;
import com.blog.entity.Comment;

public interface ICommentService extends IService<Comment> {
    /**
     * 添加评论
     * @param commentAddDto
     */
    void addCommentToArticle(CommentAddDto commentAddDto);

    /**
     * 删除评论
     * @param commentId
     */
    void deleteComment(Long commentId);


    /**
     * 获取文章评论列表
     * @param articleId
     * @param pageNum
     * @param pageSize
     * @return
     */
    PageResult getCommentList(Long articleId, Integer pageNum, Integer pageSize);
}
